TouchPoint

public interface TouchPoint

A touch point on the screen.

A touch point is defined by a pair of numbers that specify the coordinates and other properties related to a user touch on the screen.

Since

8.0.0

Types

Link copied to clipboard
public final class Builder
A builder of TouchPoint.

Functions

Link copied to clipboard
public double force()
Returns the pressure applied to this TouchPoint.
Link copied to clipboard
public int id()
Returns the identifier of this TouchPoint.
Link copied to clipboard
public static TouchPoint.Builder newBuilder(int id, Point screenPosition, TouchPoint.State state)
Creates a new TouchPoint builder with the given required parameters.
Link copied to clipboard
Returns the position relative to the bounds of the screen.
Link copied to clipboard
Returns the position relative to the bounds of the widget.
Link copied to clipboard
public double radiusX()
Returns the major X axis length of the touch ellipse.
Link copied to clipboard
public double radiusY()
Returns the major Y axis length of the touch ellipse.
Link copied to clipboard
public double rotationAngle()
Returns the orientation of the touch ellipse.